package routers

import (
	"gitee/yinlai/kms-backend/routers/auth"
	"gitee/yinlai/kms-backend/routers/cluster"
	"gitee/yinlai/kms-backend/routers/configmap"
	"gitee/yinlai/kms-backend/routers/cronjob"
	"gitee/yinlai/kms-backend/routers/daemonset"
	"gitee/yinlai/kms-backend/routers/deployment"
	"gitee/yinlai/kms-backend/routers/ingress"
	"gitee/yinlai/kms-backend/routers/namespace"
	"gitee/yinlai/kms-backend/routers/node"
	"gitee/yinlai/kms-backend/routers/pod"
	"gitee/yinlai/kms-backend/routers/pv"
	"gitee/yinlai/kms-backend/routers/pvc"
	"gitee/yinlai/kms-backend/routers/replicaset"
	scret "gitee/yinlai/kms-backend/routers/secret"
	"gitee/yinlai/kms-backend/routers/service"
	"gitee/yinlai/kms-backend/routers/statefulset"
	"gitee/yinlai/kms-backend/routers/storageclass"
	"github.com/gin-gonic/gin"
)

func RegisterRouters(r *gin.Engine) {

	{
		apiGroup := r.Group("/api")
		auth.RegisterSubRouter(apiGroup)
		cluster.RegisterSubRouter(apiGroup)
		namespace.RegisterSubRouter(apiGroup)
		pod.RegisterSubRouter(apiGroup)
		deployment.RegisterSubRouter(apiGroup)
		statefulset.RegisterSubRouter(apiGroup)
		daemonset.RegisterSubRouter(apiGroup)
		cronjob.RegisterSubRouter(apiGroup)
		replicaset.RegisterSubRouter(apiGroup)
		node.RegisterSubRouter(apiGroup)
		service.RegisterSubRouter(apiGroup)
		ingress.RegisterSubRouter(apiGroup)
		configmap.RegisterSubRouter(apiGroup)
		scret.RegisterSubRouter(apiGroup)
		pv.RegisterSubRouter(apiGroup)
		pvc.RegisterSubRouter(apiGroup)
		storageclass.RegisterSubRouter(apiGroup)
	}
	{
		//hostGroup := r.Group("/host")
	}

}
